package com.bo.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bo.dto.ManufactureDTO;
import com.bo.enity.Manufacture;
import com.bo.mapper.ManufactureMapper;
import com.bo.service.IManufactureService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
 * 生产消耗表
 */
@Service
@DS("sp1")
public class SP1ManufactureServiceImpl extends ServiceImpl<ManufactureMapper, Manufacture> implements IManufactureService {

    @Resource
    private ManufactureMapper manufactureMapper;

    @Override
    @DS("sp1")
    public List<ManufactureDTO> selectGtDeliveryId(String mDate) {
        return manufactureMapper.selectGtDeliveryId(mDate);
    }

    @Override
    @DS("sp1")
    public List<ManufactureDTO> selectByDate(String date) {
        return manufactureMapper.selectByDate(date);
    }


}
